home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
wtj008.zip
/
OBJECTS.ZIP
/
TESTSPAS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-05-17
|
611b
|
26 lines
program TestStrings;
uses WinTypes, UStrings, WinCrt;
var
String1, String2 : TString;
begin
{instantiate the TStrings}
if not TStringInit('This is string one', String1) then begin
WriteLn('Unable to instantiate String1');
Halt;
end;
if not TStringInit('This is string two', String2) then begin
WriteLn('Unable to instantiate String2');
Halt;
end;
{call the sGetString "method"}
WriteLn(String1.sGetString(@String1));
WriteLn(String2.sGetString(@String2));
{call the sDone "destructor"}
String2.sDone(@String2);
String1.sDone(@String1);
end.